import {getUserInfo} from '@/api/user'
import {GET_USER_INFO} from '../actionTypes'

export const getUser = (payload)=>{
    return async dispatch =>{
        const res = await getUserInfo(payload)
        dispatch({
            type:GET_USER_INFO,
            payload: res.data
        })
    }
}